<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/19
 * Time: 23:13
 */

namespace app\common\model;


use think\Model;

class Base extends Model
{
    /*
     * 新增   返回id
     */
    public function add($data) {
        $data['status'] = 0;
        $this->save($data);
        return $this->id;
    }
}